package com.pucong.gitee.database.backup.common.entity.database.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.pucong.gitee.database.backup.common.selfenum.DatabaseTypeEnum;
import com.pucong.gitee.database.backup.common.selfenum.TreeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("数据库表")
public class DbBackTreeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("父id 0为根节点")
    private String pId;

    @ApiModelProperty("名称")
    private String treeName;

    @ApiModelProperty("是否是叶子节点")
    private Boolean leaf;

    @ApiModelProperty("类型")
    private TreeType treeType;

    @ApiModelProperty("数据库类型")
    private DatabaseTypeEnum databaseType;

    @ApiModelProperty("数据源id")
    private String dataSourceId;

    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("模式名称")
    private String schemaName;

    @ApiModelProperty("表名称")
    private String tableName;

    @ApiModelProperty("字段名称")
    private String filedName;
}